package com.ehome.poct.terminal.api.fegin;

import com.ehome.poct.base.api.vo.device.TestDeviceVO;
import com.ehome.poct.terminal.api.constant.ApplicationName;
import com.ehome.poct.terminal.api.dto.VersionReportDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@FeignClient(value = ApplicationName.POCT_SERVICE_BASE ,path = "/test_device",contextId = "TestDeviceFeginClient")
public interface TestDeviceFeginClient {

    @GetMapping("/{id}")
    TestDeviceVO getById(@PathVariable(value = "id") String id);

    @GetMapping("/one")
    TestDeviceVO getBySno(@RequestParam(value = "sno") String sno);

    @GetMapping("/")
    List<TestDeviceVO> listByTermClinicId(@RequestParam(value = "termClinicId") Long termClinicId);

    @PostMapping("/version_report")
    void versionReport(@RequestBody VersionReportDTO dto);
}
